package edu.guet.server.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.guet.server.mapper.WatchVideoMapper;
import edu.guet.server.utils.ResultAPI;

@Service
public class WatchVideoService {
    @Autowired
    WatchVideoMapper watchVideoMapper;

    public ResultAPI getWatchVideo(int video_id, int user_id) {
        return ResultAPI.success(watchVideoMapper.getWatchVideo(video_id, user_id), "查询成功");
    }

}
